<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<script type="text/javascript" src="<%=path%>/js/common.js"></script>
<div class="panel-heading">
	<h3 class="panel-title">渠道灰名单审核</h3>
</div>
<div class="bd clearfix">
	<form id="admin_channel_gray_form" action="javascript:queryAdminChannelGrayList(1);">
		<div class="filter-wrap">
			<dl class="clearfix invest-filter">
				<dt>关键词</dt>
				<dd class="clearfix">
					<ul class="col-sm-5">
					<input type="text" class="form-control" name="keyWord" value="${paramMap.keyWord}" placeholder="请输入关键词">
					</ul>
				</dd>
			</dl>
		</div>
		<div class="text-center pb20">
			<button class="btn btn-primary">搜索</button>
		</div>
	</form>
</div>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<table class="table">
	<thead>
		<tr>
			<th width="10%">渠道商</th>
			<th width="70%">举报项</th>
			<th width="20%">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="channelGray" items="${dataList}" varStatus="index">
		<tr>
			<td class="title">
				${channelGray.channelName}
			</td>
			<td>
				${channelGray.grayInfo}
			</td>
			<td>
				<a href="javascript:auditChannelGray('${channelGray.channelGrayId}',2)">通过</a>
				&#12288;|&#12288;
				<a href="javascript:auditChannelGray('${channelGray.channelGrayId}',3)">不通过</a>
			</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<!-- 分页 -->
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryAdminChannelGrayList" style="text-center"/>
<!-- 分页 end -->
</c:when>
<c:otherwise>
	<table class="table">
		<thead>
			<tr>
				<th>标题</th>
				<th>类型</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td colspan="3" align="center">
					暂无数据
				</td>
			</tr>
		</tbody>
	</table>
</c:otherwise>
</c:choose>